package com.lzh.springboot.rabbitmqdemo;

import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.context.annotation.Bean;

import javax.annotation.Resource;
import java.util.Collections;
import java.util.Date;
import java.util.List;

/**
 * @Description:
 * @Author: LiuZiHao
 * @Date: 2022/11/28 10:05
 */
public class TestQualifier {

    @Qualifier
    @Bean
    public Date d1() {
        return new Date();
    }

    @Bean
    public Date d2() {
        return new Date();
    }

    @Resource
    private static List<Date> dates = Collections.emptyList();

}
